package com.twu.biblioteca;

/**
 * Created by mgehwolf on 03/08/2014.
 */
public class Movie extends LibraryItem{

    private int movieRating;

    public Movie(int code, String name, String creator, String year, boolean availability, int movieRating) {
        super(code, name, creator, year, availability);
        this.movieRating = movieRating;
    }

    public int getMovieRating() {
        return movieRating;
    }


    @Override
    public void addNewItem(int code, String name, String author, String year, boolean availability, int rating) {
        new Movie(code, name, author, year, availability, rating);
    }

}
